package com.ztesoft.web.common.db.dao.mapper;

import com.ztesoft.web.common.db.arg.DmHostConnInfoArg;
import com.ztesoft.web.common.db.po.DmHostConnInfoPO;

import java.math.*;
import java.util.*;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

public interface IDmHostConnInfoMapper {
    
    List<Integer> countByArg(DmHostConnInfoArg arg);

    List<DmHostConnInfoPO> selectByArg(DmHostConnInfoArg arg);

    DmHostConnInfoPO selectByPrimaryKey(Integer id);
    
    DmHostConnInfoPO selectBySrcIp(String id);

    List<DmHostConnInfoPO> selectByArgAndPage(DmHostConnInfoArg arg, RowBounds rowBound);

    int insert(DmHostConnInfoPO record);

    int insertSelective(DmHostConnInfoPO record);

    int insertBatch(@Param("list") List<DmHostConnInfoPO> records);

    int updateByArgSelective(@Param("record") DmHostConnInfoPO record,
            @Param("arg") DmHostConnInfoArg arg);

    int updateByArg(@Param("record") DmHostConnInfoPO record,
            @Param("arg") DmHostConnInfoArg arg);

    int updateByPrimaryKeySelective(DmHostConnInfoPO record);

    int updateByPrimaryKey(DmHostConnInfoPO record);
    
    int deleteByArg(DmHostConnInfoArg arg);
    
    int deleteByPrimaryKey(Integer id);

	DmHostConnInfoPO selectPOBySourceDataId(Integer sourceDataId);
    
}